{$TopMenu}
<div class="enbacContent" align="center">
<!-- begin conttent -->
    <div class="rightPanelPersonal">
    <div class="personalContent">
        <div class="boderPersonalTopLeft">
          <div class="boderPersonalTopRight">
            <div class="boderPersonalTopbg"><span></span></div>
          </div>
        </div>
        <div class="boderPersonal">
            <div>
               <div class="tabPer">
               		<ul style="padding-top:17px">
						<a href="javascript: void(0)" onClick="selecte_all_checkbox('FriendsListForm');" style="font-weight:normal">Chọn tất cả</a>&nbsp;&nbsp;|&nbsp;&nbsp;
							<a href="{literal}javascript:document.FriendsListForm.submit();{/literal}" onClick="{literal}if(confirm('Bạn có chắc muốn xóa tất cả danh sách bạn hàng không?')){return true;}else{return false;}{/literal}" style="font-weight:normal">Xóa</a>                      
                    </ul>
                    <ul>
                       <li><a href="personal.html?cmd=manage_transaction&action=friends_list&type=0"  title="Bạn hàng"><span {if $friend_type==0}class="tabPerHover"{/if}><span style=" margin-left:15px"></span>Bạn hàng</span></a></li>
                       <li><a href="personal.html?cmd=manage_transaction&action=friends_list&type=1" title="Đang chờ"><span {if $friend_type==1}class="tabPerHover"{/if}><span style=" margin-left:15px"></span>Đang chờ</span></a></li>                      
                     </ul>
                 </div>
            </div> 
            <div class="clearfix"><span></span></div>                       
            <div class="marginTop12">					                
			 <div class="prodList" style=" width:741px; border:none; min-height:300px;_height:375px">
			   {if $items}
				   {foreach from=$items item=items} 
                     {if $friend_type==0}	
						<div class="marginBottom12" style="border:2px solid #f0f0f0" align="left">
                        									
							<div class="feedbackAvatar" style=" position:absolute; margin-left:10px; margin-top:5px;">
								<div class="feedbackAvatar" style="background:url({$items.avatar_url}) center 50% no-repeat;"><img src="style/images/spacer.gif" width="50" height="50"/></div>
							 </div>
							
                            <div style=" margin:5px 0 0 690px;font-weight:normal; position:absolute">
                                <a title="Xóa bạn hàng" onClick="{literal}if(!confirm('Bạn có chắc muốn xóa không?')){return false};{/literal}" href="personal.html?cmd=manage_transaction&action=delete&id={$items._id}" >Xóa</a>
                                <input name="friend_list_id[]" type="checkbox" id="friend_list_id_{$items._id}" value="{$items._id}" />
                                </div>
                        	<div class="topFeedback" style="height:30px; background:#f0f0f0; line-height:28px; padding-left:70px">
                           		<a href="{$items.user_name}">{$items.user_name}</a>&nbsp;(<span style="font-weight:bold; color:#FF6600">{$items.total_score}</span><img src="style/images/iconFeedback.gif" width="13" height="12" />) 
                               
                            </div>
                           
									
								<div style="margin-top:30px; margin-left:70px;*margin-left:35px; width:300px; overflow:hidden; float:left;">				
                                    <div><img src="style/images/addFriend.gif" width="16" height="16" align="baseline" style="margin-right:5px" /><b>Tổng số bạn bè:&nbsp;<span style="font-size:18px; font-family:Tahoma; color:#0d3568">{$items.total_friend}</span></b></div>                 
								</div>			
							{if $items.itemsTop }
                            	<div style="background:#f0f0dd; width:330px; margin-left:400px; margin-top:30px" >
                                	<div class="miniTopList">Giao dịch mới nhất của {$items.user_name}</div>				
                                    {foreach from=$items.itemsTop item=itemsTop}
                                        <div class="listCheap">
                                           
                                            <div class="miniNews">								
                                            <a target="_blank" href="p{$itemsTop.id}/{$itemsTop.safe_name}.html">{$itemsTop.name}</a>
                                            </div>
                                        </div>
                                    {/foreach}	
                                    <div style="height:7px"><span></span></div>	
                                </div>	
                             {/if}   
                                <div class="clearfix" style="height:12px"><span></span></div>				
                             
                    	</div>	
                        {/if}
                        {if $friend_type==1}
                       		{if !$items.hrefGetFriend}
                               <div style=" margin:5px 0 0 690px;font-weight:normal; position:absolute">
                               
                                    <a title="Xóa bạn hàng" onClick="{literal}if(!confirm('Bạn có chắc muốn xóa không?')){return false};{/literal}" href="personal.html?cmd=manage_transaction&action=delete&id={$items._id}" >Xóa</a>
                                    <input name="friend_list_id[]" type="checkbox" id="friend_list_id_{$items._id}" value="{$items._id}" />
                                </div>
                                {/if}
                                <div style=" margin:7px 0 0 640px;font-weight:normal; position:absolute">
                                
                               {if $items.hrefGetFriend}								                                
									<a href="personal.html?cmd=manage_transaction&action=accept&id={$items._id-1}">Chấp nhận</a> | <a href="personal.html?cmd=manage_transaction&action=deni&id={$items._id-1}" >Từ chối</a>								
								{/if}
                                   
                                </div>
                                <div class="topFeedback" style="height:30px; line-height:28px; padding-left:5px" align="left">
                                    <a href="{$items.user_name}">{$items.user_name}</a> 
                                   
                                </div>
								<hr />
							{/if}
                        					   
					{/foreach}
				{else}								 				
				<div style="text-align:center; line-height:300px; font-weight:bold; font-size:14px;"><strong>Ch&#432;a c&#243; bạn hàng n&#224;o trong m&#7909;c n&#224;y</strong></div>
				{/if}
				 <div class="clearfix"><span></span></div>                    
			</div>
            </div>
        </div>
        {if $paging}       
		  <div style=" background:#f7f7f7; border:1px solid #133c73; border-bottom:none; border-top:none">
            <div align="right" style="height:31px;">
               <div id="paging" style="padding:7px; float:right">{$paging}</div>
            </div>
          </div> 
        {/if}
        <div class="boderPersonalBottomLeft{if !$paging}NoPag{/if}">
          <div class="boderPersonalBottomRight">
            <div class="boderPersonalBottombg{if $paging}Pag{/if}"><span></span></div>
          </div>
        </div>
    </div>
    <div class="clearfix"><span></span></div>
</div>
<input name="del_all_friends" type="hidden" value="1" />
</div>